require 'View.Base.BaseView'
--需要添加一个LuaNumberProperty,Name是Height的属性
SetPlanarShadowHeight = class('SetPlanarShadowHeight', BaseView)

function SetPlanarShadowHeight:InitPanel()
    self.shadowMaterial = self.gameObject:GetComponent('SkinnedMeshRenderer').material
end

function SetPlanarShadowHeight:OnStart()
    self.shadowMaterial:SetFloat('_PlaneHeight', self.Height)
end